#ifndef __ADDRESS_H__
#define __ADDRESS_H__

#include <stdlib.h>

namespace tiny_muduo
{
    class Address
    {
    private:
        const char* ip_;
        const int port_;

    public:
        Address(const char* port = "2024") : ip_("127.0.0.1"), port_(atoi(port)) {}
        
        const char* ip() const { return ip_; }
        const int port() const { return port_; }
    };
}

#endif
